﻿namespace ATS.Dto;
#if ATS
using System.ComponentModel.DataAnnotations;
#endif

/// <summary>
/// 产品条码绑定生产工艺参数
/// </summary>
public class ProductCodeBindingDto
{
    /// <summary>
    /// 产品物料编码
    /// </summary>
#if ATS
    [Required(ErrorMessage = "{0}不能为空")]
    [StringLength(255, ErrorMessage = "{0}长度不能超过255")]
#endif
    public string OriginCode { get; set; }

    /// <summary>
    /// 产品条码（SN）
    /// </summary>
#if ATS
    [Required(ErrorMessage = "{0}不能为空")]
    [StringLength(255, ErrorMessage = "{0}长度不能超过255")]
#endif
    public string ProductCode { get; set; }
}
